#include "infile.h"

std::string today(void)
{
	struct tm *date;
	std::time_t now = time(NULL);
	date = localtime(&now);
	std::ostringstream ostr;
	ostr << (date->tm_mon < 9 ? "0" : "") << (date->tm_mon + 1)
	     << (date->tm_mday < 10 ? "0" : "") << date->tm_mday 
	     << (date->tm_hour < 10 ? "0" : "") << date->tm_hour;
	std::string name = ostr.str();
	return name;
}